<!--
 * @Description: file content
 * @Author: Zt2tzzt
 * @Date: 2021-09-30 15:48:38
 * @LastEditors: ZeT1an
 * @LastEditTime: 2022-02-05 20:46:51
 * @LastEditContent: 
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app"></div>

  <template id="my-app">
    <h2>{{message}}</h2>
    <component-a></component-a>
  </template>

  <template id="component-c">
    Hello Frog
  </template>

  <script src="https://unpkg.com/vue@next"></script>
  <script>

    const ComponentA = {
      template: '#component-c'
    }

    const App = {
      template: '#my-app',
      data() {
        return {
          message: 'Hello Froge'
        }
      },
      components: {
        ComponentA
      }
    }
    const app = Vue.createApp(App)
    app.mount('#app')
  </script>
</body>

</html>